package io.renren.modules.member.service.impl;

import io.renren.modules.member.dao.TStoreMemberTypeDao;
import io.renren.modules.member.entity.TStoreMemberTypeEntity;
import io.renren.modules.member.service.TStoreMemberTypeService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;



@Service("tStoreMemberTypeService")
public class TStoreMemberTypeServiceImpl extends ServiceImpl<TStoreMemberTypeDao, TStoreMemberTypeEntity> implements TStoreMemberTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TStoreMemberTypeEntity> page = this.page(
                new Query<TStoreMemberTypeEntity>().getPage(params),
                new QueryWrapper<TStoreMemberTypeEntity>()
                .eq(params.get("sellerId") != null,"seller_id",params.get("sellerId"))
                .eq(params.get("status") != null,"status",params.get("status"))
        );

        return new PageUtils(page);
    }

}